package com.exoweb.games.hexagone.model
{
    import com.exoweb.games.hexagone.model.vo.GameVo;
    import com.exoweb.games.hexagone.model.vo.UserVo;
    import com.exoweb.games.hexagone.model.vo.GameSettingVo;

    public class HexModelLocator
    {
        private static var instance:HexModelLocator;

        public var gameVo:GameVo = new GameVo();
        public var userVo:UserVo = new UserVo();
        public var gameSettingVo:GameSettingVo = new GameSettingVo();

        public static function getInstance():HexModelLocator
        {
            if(instance == null)
            {
                instance = new HexModelLocator(new SingletonEnforcer());
            }

            return instance;
        }

        public function HexModelLocator(enforcer:SingletonEnforcer)
        {
        }
    }
}

// The private class
class SingletonEnforcer {};
